//
// Created by chenchao on 2021/8/15.
//

#include "CCOpenGLVAO.h"
CCOpenGLVAO::CCOpenGLVAO()
{
}
CCOpenGLVAO::~CCOpenGLVAO()
{
    glDeleteVertexArrays(1,&m_vaoId);
}

void CCOpenGLVAO::Create()
{
    glGenVertexArrays(1, &m_vaoId);
}

void CCOpenGLVAO::Bind()
{
    glBindVertexArray(m_vaoId);
}
void CCOpenGLVAO::Release()
{
    glBindVertexArray(0);
}

